package com.ruoyi.active.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.active.mapper.CfShopImageMapper;
import com.ruoyi.active.domain.CfShopImage;
import com.ruoyi.active.service.ICfShopImageService;

/**
 * 门店照片(cf_shop_image)Service业务层处理
 * 
 * @author zhangbiao
 * @date 2024-06-04
 */
@Service
public class CfShopImageServiceImpl implements ICfShopImageService 
{
    @Autowired
    private CfShopImageMapper cfShopImageMapper;

    /**
     * 查询门店照片(cf_shop_image)
     * 
     * @param id 门店照片(cf_shop_image)主键
     * @return 门店照片(cf_shop_image)
     */
    @Override
    public CfShopImage selectCfShopImageById(Long id)
    {
        return cfShopImageMapper.selectCfShopImageById(id);
    }

    /**
     * 查询门店照片(cf_shop_image)列表
     * 
     * @param cfShopImage 门店照片(cf_shop_image)
     * @return 门店照片(cf_shop_image)
     */
    @Override
    public List<CfShopImage> selectCfShopImageList(CfShopImage cfShopImage)
    {
        return cfShopImageMapper.selectCfShopImageList(cfShopImage);
    }

    /**
     * 新增门店照片(cf_shop_image)
     * 
     * @param cfShopImage 门店照片(cf_shop_image)
     * @return 结果
     */
    @Override
    public int insertCfShopImage(CfShopImage cfShopImage)
    {
        return cfShopImageMapper.insertCfShopImage(cfShopImage);
    }

    /**
     * 修改门店照片(cf_shop_image)
     * 
     * @param cfShopImage 门店照片(cf_shop_image)
     * @return 结果
     */
    @Override
    public int updateCfShopImage(CfShopImage cfShopImage)
    {
        return cfShopImageMapper.updateCfShopImage(cfShopImage);
    }

    /**
     * 批量删除门店照片(cf_shop_image)
     * 
     * @param ids 需要删除的门店照片(cf_shop_image)主键
     * @return 结果
     */
    @Override
    public int deleteCfShopImageByIds(Long[] ids)
    {
        return cfShopImageMapper.deleteCfShopImageByIds(ids);
    }

    /**
     * 删除门店照片(cf_shop_image)信息
     * 
     * @param id 门店照片(cf_shop_image)主键
     * @return 结果
     */
    @Override
    public int deleteCfShopImageById(Long id)
    {
        return cfShopImageMapper.deleteCfShopImageById(id);
    }
}
